<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>公寓信息列表</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body>
<blockquote class="layui-elem-quote layui-text" >
    公寓信息表单
</blockquote>
<div style="margin-top: 20px;margin-left: 20px;">
    公寓搜索:
    <div class="layui-inline">
        <div class="layui-input-inline">
            <input type="text" name="address" id="address"  placeholder="请输入地址关键字" autocomplete="off" class="layui-input">
        </div>
    </div>
    <button id="apartmentsearch" type="button" class="layui-btn">
        <i class="layui-icon layui-icon-search"></i>
    </button>
</div>
<table class="layui-hide" id="apartmentlist" lay-filter="apartmentTable"></table>
<!--行工具栏-->
<script type="text/html" id="barDemo">
    <!--<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>-->
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<!--头工具栏-->
<script type="text/html" id="head-option">
    <a class="layui-btn" lay-event="add">添加公寓</a>
    <a class="layui-btn layui-btn-danger" lay-event="delete">批量删除</a>
</script>
<script src="/layui/layui.js"></script>
<script src="/js/apartment.js"></script>
<!--学生信息修改框-->
<form style="display:none;" class="layui-form layui-form-pane" lay-filter="updateapartment" id="updateapartment">
    <blockquote class="layui-elem-quote layui-text">
        公寓信息修改
    </blockquote>
    <input name="apartmentId" class="layui-input" type="hidden"autocomplete="off">
    <div class="layui-form-item">
        <label class="layui-form-label">公寓名称：</label>
        <div class="layui-input-inline">
            <input name="apartmentName" class="layui-input" type="text" placeholder="请输入名称" autocomplete="off"
                   lay-verify="required">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">公寓地址：</label>
        <div class="layui-input-inline">
            <input name="apartmentAddress" class="layui-input" type="text" placeholder="请输入地址" autocomplete="off"
                   lay-verify="required">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">管理员：</label>
        <div class="layui-input-block" style="width: 40%;">
            <select name="apartmentAdministrator" lay-verify="required" lay-filter="Administrator" id="Administrator">
                <option value=""></option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">公寓状态：</label>
        <div class="layui-input-block">
            <input type="radio" name="apartmentStatus" value="1" title="启用">
            <input type="radio" name="apartmentStatus" value="0" title="禁用" checked>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="updateapartment">修改</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
</html>